<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">招生类型:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[stu_type]', $stu_types, $row['stu_type'], ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="co_name" class="control-label col-xs-12 col-sm-2">院校名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="co_name" name="row[co_name]" value="{$row.co_name}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label for="co_code" class="control-label col-xs-12 col-sm-2">院校代码:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="co_code" name="row[co_code]" value="{$row.co_code}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">院校LOGO:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" class="form-control" size="50" name="row[co_logo]" type="text" value="{$row.co_logo}">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="faupload-avatar"
                                class="btn btn-danger faupload"
                                data-input-id="c-avatar"
                                data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                data-multiple="false"
                                data-preview-id="p-avatar">
                        <i class="fa fa-upload"></i> {:__('Upload')}</button>
                    </span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">所在校别:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[school_type]', $school_types, $row['school_type'], ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label for="addr_area" class="control-label col-xs-12 col-sm-2">所在地:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="addr_area" name="row[addr_area]" value="{$row.addr_area}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="addr_detail">街道地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="addr_detail" name="row[addr_detail]" value="{$row.addr_detail}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="sort">排序:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="sort" name="row[sort]" value="{$row.sort}"
                   data-rule="required"/>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">停止招生:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[stu_stop]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['stu_stop'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">考试地区:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[exam_area][]', $exam_area, $row['exam_area'], [
                'class'=>'form-control selectpicker', 'multiple'=>'', 'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="remark">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="remark" name="row[remark]" value="{$row.remark}"/>
        </div>
    </div>

    <div class="form-group">
        <label for="c-avatar-p" class="control-label col-xs-12 col-sm-2">介绍主图:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar-p" class="form-control" size="50" name="row[introduce_pic]" type="text" value="{$row.introduce_pic}">
                <div class="input-group-addon no-border no-padding">
                    <span>
                        <button type="button" id="faupload-avatar-p"
                                class="btn btn-danger faupload"
                                data-input-id="c-avatar-p"
                                data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                                data-multiple="false"
                                data-preview-id="p-avatar-p">
                        <i class="fa fa-upload"></i> {:__('Upload')}</button>
                    </span>
                </div>
                <span class="msg-box n-right" for="c-avatar-p"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avatar-p"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="introduce_desc">介绍概要:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="introduce_desc" name="row[introduce_desc]">{$row.introduce_desc}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" for="introduce_detail">介绍详情:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="form-control" id="introduce_detail" name="row[introduce_detail]">{$row.introduce_detail}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
